<template>
	<view>
		<view class="list-wrapper" v-show="data == true">
			<navigator url="./help/studenthelp">
				<view class="list-item">
					<view class='item'>
						<text class="item-text">如何查看学生详情</text>
						<view class="item-array">
							<image src="../../static/img/my/info_68_68.jpg" class="img"></image>
						</view>
					</view>
					<view class="div-line"></view>
				</view>
			</navigator>
			<navigator url="./help/proclasshelp">
				<view class="list-item">
					<view class='item'>
						<text class="item-text">如何发布项目班详情</text>
						<view class="item-array">
							<image src="../../static/img/my/info_68_68.jpg" class="img"></image>
						</view>
					</view>
					<view class="div-line"></view>
				</view>
			</navigator>
			<navigator url="./help/proclasshelp">
				<view class="list-item">
					<view class='item'>
						<text class="item-text">如何导出学生信息</text>
						<view class="item-array">
							<image src="../../static/img/my/info_68_68.jpg" class="img"></image>
						</view>
					</view>
					<view class="div-line"></view>
				</view>
			</navigator>
			<navigator url="./help/changehelp">
				<view class="list-item">
					<view class='item'>
						<text class="item-text">如何改变审核状况</text>
						<view class="item-array">
							<image src="../../static/img/my/info_68_68.jpg" class="img"></image>
						</view>
					</view>
					<view class="div-line"></view>
				</view>
			</navigator>
		</view>
		<!--  -->
		<view v-show="data == false">
			<navigator url="./help/studentchild/baomin">
				<view class="list-item">
					<view class='item'>
						<text class="item-text">报名流程</text>
						<view class="item-array">
							<image src="../../static/img/my/info_68_68.jpg" class="img"></image>
						</view>
					</view>
					<view class="div-line"></view>
				</view>
			</navigator>
			<navigator url="./help/studentchild/chexiao">
				<view class="list-item">
					<view class='item'>
						<text class="item-text">撤消指南</text>
						<view class="item-array">
							<image src="../../static/img/my/info_68_68.jpg" class="img"></image>
						</view>
					</view>
					<view class="div-line"></view>
				</view>
			</navigator>
			<navigator url="./help/studentchild/wufa">
				<view class="list-item">
					<view class='item'>
						<text class="item-text">无法报名</text>
						<view class="item-array">
							<image src="../../static/img/my/info_68_68.jpg" class="img"></image>
						</view>
					</view>
					<view class="div-line"></view>
				</view>
			</navigator>
			<navigator url="./help/studentchild/zixun">
				<view class="list-item">
					<view class='item'>
						<text class="item-text">咨询问题</text>
						<view class="item-array">
							<image src="../../static/img/my/info_68_68.jpg" class="img"></image>
						</view>
					</view>
					<view class="div-line"></view>
				</view>
			</navigator>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				role: "",
				data: false,
			}
		},
		created() {
			const role = uni.getStorageSync("role");
			this.role = role;
			this.data = this.change(role);
		},
		methods: {
			change(role) {
				if (role == 'enterprise' || role == 'teacher') {
					return this.data = !this.data;
				} else {
					return this.data;
				}
			}
		}
	}
</script>

<style>
	page {
		height: 100%;
		background-color: rgba(75, 75, 75, 0.05);
	}

	.list-wrapper {
		width: 100%;
		margin-top: 10rpx;
	}

	.div-line {
		background: #E0E3DA;
		width: 100%;
		height: 3upx;
	}

	.list-item {
		width: 100%;
		height: 120upx;
	}

	.item {
		display: flex;
		flex-direction: row;
		align-items: center;
		height: 120upx;
	}

	.item-text {
		position: fixed;
		left: 20upx;
		font-size: 30upx;
		color: rgba(78, 78, 78, 1);

	}

	.item-array {
		position: absolute;
		right: 50rpx;
	}

	.img {
		width: 20rpx;
		height: 20rpx;
	}
</style>
